home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 4370 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  2.1 KB

  1. Path: news.transport.com!usenet
  2. From: rmashlan@r2m.com (Robert Mashlan)
  3. Newsgroups: comp.graphics.algorithms,comp.lang.c++,comp.os.ms-windows.programmer.graphics,comp.os.ms-windows.programmer.multimedia,comp.os.ms-windows.programmer.win32
  4. Subject: Re: IJG JPEG Engine and Win32
  5. Date: Mon, 29 Jan 1996 23:53:40 GMT
  6. Organization: R2M Software Company
  7. Message-ID: <310d5a9f.41441673@news.transport.com>
  8. References: <4cemir$6vb@redstone.interpath.net> <TGL.96Jan3202549@netcom21.netcom.com> <TGL.96Jan5065424@netcom21.netcom.com> <4cpn1r$gm0@redstone.interpath.net> <4crai5$ear@hades.rz.uni-sb.de> <4d11tg$56q@redstone.interpath.net> <310110c0.44581633@news.connectnet.com> <4dt42n$pu3@redstone.interpath.net>
  9. NNTP-Posting-Host: sea13.seasurf.com
  10. X-Newsreader: Forte Agent .99c/16.141
  11.  
  12. fortunat@interpath.com (Jumpstile Turner) wrote:
  13.  
  14.  
  15. >>Are you sure that GlobalAlloc doesn't wind up calling
  16. >>
  17. >
  18. >  You didnt finish this line.  I assume you mean GlobalAlloc doesn't 
  19. >wind up calling HeapAlloc?  As far as I understand GlobalAlloc still 
  20. >calls 16-bit memory rather than 32-bit memory.  I could be wrong, but 
  21. >in one of my Win32 books floating around here it states that Win95 
  22. >Explorer still uses GlobalAlloc to allocate memory for "Drag and Drop" 
  23. >data structures and that this is 16-bit RAM it is allocating.  It also 
  24. >states that GlobalAlloc is much slower than using HeapAlloc or 
  25. >VirtualAlloc.  I haven't tested this much, but it sure SEEMS slower 
  26. >when I switch HeapAlloc calls to GlobalAlloc.  Although this might be 
  27. >the power of suggestion. :)  However I've read this in more than one 
  28. >place so I'd just assume it was correct.
  29.  
  30. In Win32, GlobalAlloc and LocalAlloc are the same function.  They
  31. allocate memory from the process' 32-bit heap.  There is a difference
  32. between HeapAlloc for backard compatibility in that LMEM_MOVEABLE
  33. allocated handles are doubly indirect pointers (void **) to the
  34. memory.
  35.  
  36. See Peitrek's "Windows 95 Programming Secrets" for more info.
  37.  
  38. rm
  39.  
  40.  
  41.  
  42.  
  43.  
  44. ---
  45. Robert Mashlan | R2M Software
  46. rmashlan@r2m.com http://www.transport.com/~rmashlan
  47. Internet Resources for Windows Developers
  48. http://www.r2m.com/windev/
  49.